package com.designpattern.softwaredesignpatternstudy.pattern.builder;

/**
 * @Author: Jiangxx
 * @Date: 2021/10/09
 * @Description: 建造模式实例
 */
public class Client {
}

class Product {
    private String partA;

    private String partB;

    private String partC;
    public void setPartA(String partA) {
        this.partA = partA;
    }

    public void setPartB(String partB) {
        this.partB = partB;
    }

    public void setPartC(String partC) {
        this.partC = partC;
    }
    public void show(){

    }
}

abstract class Builder {
    protected Product product = new Product();

    public abstract void buildpartA();

    public abstract void buildpartB();

    public abstract void buildpartC();

    public Product getResult() {
        return product;
    }
}


